$mainColor: #FC2D1C;

.black-shadow {
    display: none;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0, .7);
    z-index: 998;
    position: absolute;
    left: 0;
    top: 0;
}

.page1 {
    display: flex;
    padding: 20px;
    color: red;
}

.slideImg {
    max-width: 100%;
    width: 100%;
    height: auto;
}
// slider row css

.swiper-button-next,
.swiper-button-next1,
.swiper-button-prev,
.swiper-button-prev1 {
    background-size: 70%;
    opacity: 0.6;
}

.swiper-button-next1,
.swiper-button-prev1 {
    position: absolute;
    top: 50%;
    width: 27px;
    height: 44px;
    margin-top: -22px;
    z-index: 10;
    cursor: pointer;
    background-position: center;
    background-repeat: no-repeat;
}

.swiper-button-prev,
.swiper-button-prev1 {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E");
    left: 10px;
    right: auto;
}

.swiper-button-next,
.swiper-button-next1 {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E");
    right: 10px;
    left: auto;
}

.section-block {
    background-color: #FFF;
    border-radius: 3px;
}

.section-block-title {
    text-align: center;
    margin: 15px 0;
    font-size: 1.6rem;
    padding-bottom: 0;
}

.now-auction {
    .title {
        padding: 10px 5px !important;
        margin: 0 0 0 7px;
        font-size: 1.6rem;

        a{
          color: #000;
        }
    }

    .bottom-menu {
        a {
            display: inline-block;
            text-align: center;
            width: 50%;
            float: left;
            padding: 1.4rem;
            border-top: 1px dashed #e3e3e3;
            color: #000;

            &:first-child {
                border-right: 1px dashed #e3e3e3;
            }

            &:active {
                text-decoration: none;
            }
        }
    }
}



.car-info,
.car-list-info {
    margin: 0 5px;
    padding: 10px 0;
    border-top: 1px dashed #e3e3e3;

    .media {
        .car-thumb {
            max-width: 150px;
        }

        .media-body {
            p {
                margin: 0;
                font-size: 1.4rem;
                margin-top: 2px;
                padding: 0;

                span {
                    color: #ff0000;
                }

                &:first-child {
                    font-size: 1.6rem;
                    margin-top: 0;
                    max-width: 175px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    word-break: break-all;
                }

                &:nth-child(3),&:nth-child(4) {
                    color: #999;
                    font-size: 1.3rem;
                }
            }
        }
    }
}

.car-list-info {
    border-top: 0;
    padding: 0;

    .block-link{
      padding: 12px 0;
      font-size: 1.6rem;
      text-align: center;
      display: block;
    }
    .more-link{
      color: red;
      border-top: 1px dashed #e3e3e3;
    }

    .media {
        border-top: 1px dashed #e3e3e3;
        margin: 0;
        padding: 10px 0;

        &:first-child {
            border-top: 0;
        }
    }
}

.now-auction-link {
    padding: 10px 4px;
    text-align: center;
    color: white;
    font-size: 1.4rem;
    background: #FC2D1C;
    border-radius: 2px;
    display: inline-block;

    &:hover {
        color: white;
        text-shadow: 0 0 3px white;
    }

    a{
      color : #000;
    }
}
//

.car-info-link {
    padding: 10px 12px;
    color: #fc2d1c;
    font-size: 1.4rem;
    background: #EEEEEE;
    border-radius: 2px;
    display: inline-block;
    border: 1px solid #EEEEEE;

    &:focus,
    &:hover {
        color: white;
        text-decoration: none;
    }
}

.goodcar {
    width: 90%;
}

.attention {
    margin-left: 3px;
    border: 1px solid #EEE;
    color: #000 !important;
    background-color: transparent !important;
}

.recommend-list {
    margin-bottom: 0;

    .list-inline {
        padding: 8px;

        border-bottom: 1px dashed #e3e3e3;
        margin: 0;

        a{
          color : #000;
        }
        .media-left {
            border-right: 1px solid #eee;
            padding-right: 6px;
        }

        &:last-child {
            border-bottom: 0;
        }

        .media-body {
            .media-heading {
                font-size: 16px;
            }
            padding-left: 10px;

            p {
                color: #999;
                margin-bottom: 0;
                padding: 0;
            }
        }
    }
}

.car-form {
    .form-group {
        margin: 0;
        padding: 5px;

        input {
            margin-bottom: 3px;
        }

        .input-lg {
            font-size: 1.6rem;
            height: initial;
            padding: 10px 16px;
        }

        .car-submit {
            background: $mainColor;
            color: #fff;
            border: 1px solid $mainColor;
        }
    }
}

.recommend-list {
    margin-bottom: 0;

    .list-inline {
        padding: 8px;
        border-bottom: 1px dashed #e3e3e3;
        margin: 0;
        padding-bottom: 0;
        .media-left {
            border-right: 1px solid #eee;
            padding-right: 6px;
        }

        &:last-child {
            border-bottom: 0;
        }

        .media-body {
            .media-heading {
                font-size: 16px;
            }
            padding-left: 10px;

            p {
                color: #999;
                margin-bottom: 0;
            }
        }
    }
}


// Galaxy S5
@media only screen
  and (min-device-width: 360px)
  and (max-device-width: 640px)
  and (-webkit-min-device-pixel-ratio: 3){
    .now-auction-link{
      font-size: 1.2rem;
    }
  }

//I5
//and (max-device-width: 568px)
@media only screen and (max-device-width:321px) and (-webkit-min-device-pixel-ratio:2) {
    .now-auction-link {
        font-size: 1.2rem;
    }

    .car-info,
    .car-list-info {
        margin: 0 5px;
        // padding: 10px 0;
        // border-top: 1px dashed #e3e3e3;

        .media {
            .car-thumb {
                max-width: 118px;
            }

            .media-left {
                padding-right: 5px;
            }

            .media-body {
                p {
                    margin: 0;
                    font-size: 1.2rem;

                    span {
                        color: #ff0000;
                    }

                    &:first-child {
                        font-size: 1.3rem;
                    }

                    &:nth-child(3),&:nth-child(4) {
                        color: #999;
                        font-size: 1.2rem;
                    }
                }
            }
        }
    }

    .car-info-link {
        padding: 8px 4px;
        color: #fc2d1c;
        font-size: 1.2rem;
        background: #EEEEEE;
        border-radius: 2px;
    }

    .recommend-list {
        margin-bottom: 0;

        .list-inline {
            // padding: 8px;
            border-bottom: 1px dashed #e3e3e3;
            margin: 0;

            &:last-child {
                border-bottom: 0;
            }

            .media-body {
                h4 {
                    font-size: 1.4rem;
                }
            }

            p {
                color: #999;
                margin-bottom: 0;
                font-size: 1.2rem;
            }
        }
    }
}
